using AndyPike.Commons.TestSupport;
using AndyPike.Snowflake.Web.Controllers;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;

namespace AndyPike.Snowflake.Web.Tests.Unit.Controllers
{
    [TestFixture]
    public class When_the_homepage_is_requested : ControllerUnitTestBase
    {
        private HomeController controller;

        [SetUp]
        public void SetUp()
        {
            controller = new HomeController();
            PrepareController(controller, "Home");
        }

        [Test]
        public void Should_render_the_homepage_view()
        {
            controller.Index();

            Assert.That(controller.SelectedViewName, Is.EqualTo(@"Home\Index"));
        }
    }
}